package com.hospital.centerone.service.Impl;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.hospital.centerone.dao.ProjectTypeDao;
import com.hospital.centerone.entity.Bed;
import com.hospital.centerone.entity.Inoutpatienttype;
import com.hospital.centerone.entity.Moneytype;
import com.hospital.centerone.entity.Outpatienttype;
import com.hospital.centerone.entity.Projecttype;
import com.hospital.centerone.service.ProjectTypeService;

import javax.annotation.Resource;
import java.util.List;
@Service
@Transactional
public class ProjectTypeServiceImpl implements ProjectTypeService {

    @Resource
    private ProjectTypeDao projectTypeDao;
    /*
     * 项目大类增删改查
     * */
    @Override
    public List<Projecttype> findAllProjecttype(Projecttype projecttype) {
//    	System.out.println(projectTypeDao.findAllProjecttype(projecttype));
        return projectTypeDao.findAllProjecttype(projecttype);
    }

    @Override
    public int addProjecttype(Projecttype projecttype) {
        return projectTypeDao.addProjecttype(projecttype);
    }



    @Override
    public int deleteProjecttype(Integer projecttype_id) {
        return projectTypeDao.deleteProjecttype(projecttype_id);
    }
    @Override
	public int editProjecttype(Projecttype projecttype) {
    	return projectTypeDao.editProjecttype(projecttype);
	}

    @Override
    public int count1(Projecttype projecttype) {
        return projectTypeDao.count1(projecttype);
    }

    /*
     * 门诊项目增删改查
     * */
    @Override
    public List<Outpatienttype> findAllOutpatienttype(Outpatienttype outpatienttype) {
        return projectTypeDao.findAllOutpatienttype(outpatienttype);
    }

    @Override
    public int addOutpatienttype(Outpatienttype outpatienttype) {
        return projectTypeDao.addOutpatienttype(outpatienttype);
    }

    @Override
    public int editOutpatienttype(Outpatienttype outpatienttype) {
        return projectTypeDao.editOutpatienttype(outpatienttype);
    }

    @Override
    public int deleteOutpatienttype(Integer outpatient_id) {
        return projectTypeDao.deleteOutpatienttype(outpatient_id);
    }

    @Override
    public int count2(Outpatienttype outpatienttype) {
        return projectTypeDao.count2(outpatienttype);
    }
//    /*
//     * 住院项目增删改查
//     * */
    @Override
    public List<Inoutpatienttype> findAllInoutpatienttype(Inoutpatienttype inoutpatienttype) {
        return projectTypeDao.findAllInoutpatienttype(inoutpatienttype);
    }

    @Override
    public int addInoutpatienttype(Inoutpatienttype inoutpatienttype) {
        return projectTypeDao.addInoutpatienttype(inoutpatienttype);
    }

    @Override
    public int editInoutpatienttype(Inoutpatienttype inoutpatienttype) {
        return projectTypeDao.editInoutpatienttype(inoutpatienttype);
    }

    @Override
    public int deleteInoutpatienttype(Integer inoutpatient_id) {
        return projectTypeDao.deleteInoutpatienttype(inoutpatient_id);
    }

    @Override
    public int count3(Inoutpatienttype inoutpatienttype) {
        return projectTypeDao.count3(inoutpatienttype);
    }


    /*
     * 收费项目增删改查
     * */
    @Override
    public List<Moneytype> findAllMoneytype(Moneytype moneytype) {
        return projectTypeDao.findAllMoneytype(moneytype);
    }

    @Override
    public int addMoneytype(Moneytype moneytype) {
        return projectTypeDao.addMoneytype(moneytype);
    }

    @Override
    public int editMoneytype(Moneytype moneytype) {
        return projectTypeDao.editMoneytype(moneytype);
    }

    @Override
    public int deleteMoneytype(Integer money_id) {
        return projectTypeDao.deleteMoneytype(money_id);
    }

    @Override
    public int count4(Moneytype moneytype) {
        return projectTypeDao.count4(moneytype);
    }

    /*
     * 床位项目增删改查
     * */
    @Override
    public List<Bed> findAllBed(Bed bed) {
        return projectTypeDao.findAllBed(bed);
    }

    @Override
    public int addBed(Bed bed) {
        return projectTypeDao.addBed(bed);
    }

    @Override
    public int editBed(Bed bed) {
        return projectTypeDao.editBed(bed);
    }

    @Override
    public int deleteBed(Integer bed_id) {
        return projectTypeDao.deleteBed(bed_id);
    }

    @Override
    public int count5(Bed bed) {
        return projectTypeDao.count5(bed);
    }

    @Override
    public int checkCount(Integer bed_id) {
        return projectTypeDao.checkCount(bed_id);
    }

	
}
